ELF unexec: Merge Alpha and MIPS COFF debug handling
authorAlan Modra <amodra@gmail.com>
Sun, 8 Nov 2015 17:28:59 +0000 (09:28 -0800)
committerRob Browning <rlb@defaultvalue.org>
Mon, 18 Jan 2016 21:14:15 +0000 (15:14 -0600)
commit2cb9075979e413e4cc31c85d3bd830f791cc574b
treea96289960d3fe0b00969645c9375b559ee9b179e
parent9fa97f0c2c1afae39b6662a836910deb1e0130ad
ELF unexec: Merge Alpha and MIPS COFF debug handling

Emacs should build on ppc64el.  A problem with the bss has been fixed.

This upstream patch has been added [3/10]:

  ELF unexec: Merge Alpha and MIPS COFF debug handling

  * unexelf.c (unexec): Merge Alpha and MIPS COFF debug handling.
  Don't find .mdebug section index, find the section in the loop.
  Allow for unlikely possibility that .mdebug is located at sh_offset
  before bss segment, by calculating move from difference in
  sh_offset rather than just assuming new_data2_size.  Simplify
  cbLineOffset handling.

Origin: upstream, commit: 47c6e3035b8182c6436de4673473de7824ad59f1
Bug: http://debbugs.gnu.org/20614
Bug-Debian: http://bugs.debian.org/808347
Added-by: Rob Browning <rlb@defaultvalue.org>
src/unexelf.c